<?php
    $rows = array();	
	foreach ($nodes as $node) {
		$rows[] = array(
					'data' => array(
						  l($node->title, 'node/' . $node->nid).theme('mark', array('type' => node_mark($node->nid, $node->changed))),
						  format_date($node->created),
					)
		);
	}
	$header = array(
	    array('data' => 'Title', 'field' => 'title', 'sort' => 'asc'),
	    array('data' => 'Created', 'field' => 'created','sort' => 'desc'),
	    );
	$html = theme('table', 
				array(
					'header' => $header,
					'rows'=>$rows,
					'caption' => t('My books'),	//Optional Caption for the table
					'sticky' => TRUE,						//Optional to indicate whether the table headers should be sticky
					'empty' => t('No books...'),		//Optional empty text for the table if resultset is empty
				)
			);	
	$html .= theme('pager',
				array(
					'tags' => array(),
					'element' => 'my_books_pager',
				)
			);
	print($html);
?>